import { ref, computed, } from 'vue'
export const useDetails = (props?: any, initData?: any, emit?: any) => {
    const riskDetails = ref<any>(
          [{    //风险隐患
              images: [
                  'https://img.yzcdn.cn/vant/apple-1.jpg',
                  'https://img.yzcdn.cn/vant/apple-2.jpg',
              ],
              findTime:"2021-11-3",
                latentGrade: "1",//隐患等级
                latentPart: "xxx",//隐患部位
              findDescribe: "",//发现描述
                mendTime:"xxx" //整改时间
            },
                {
                    images: [
                        'https://img.yzcdn.cn/vant/apple-1.jpg',
                        'https://img.yzcdn.cn/vant/apple-2.jpg',
                    ],
                    latentGrade: "2",//隐患等级
                    latentPart: "xxx",//隐患部位
                    findDescribe: "",//发现描述
                    mendTime: "xxx" //整改时间
                }],

    )

    // const detail = () => {
    //     return detailsList.value.
    //  }

    const show = ref(false);

    const showPopup = () => {
        show.value = true;
    }


    return {
        riskDetails,
        show,
        showPopup,
        
    }
}